package com.gmp.material.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gmp.material.mapper.MaterialReceiptRecordMapper;
import com.gmp.material.domain.MaterialReceiptRecord;
import com.gmp.material.service.IMaterialReceiptRecordService;

/**
 * 物料记录管理Service业务层处理
 * 
 * @author Koi
 * @date 2025-07-26
 */
@Service
public class MaterialReceiptRecordServiceImpl extends ServiceImpl<MaterialReceiptRecordMapper, MaterialReceiptRecord> implements IMaterialReceiptRecordService
{
    @Autowired
    private MaterialReceiptRecordMapper materialReceiptRecordMapper;

    /**
     * 查询物料记录管理
     * 
     * @param id 物料记录管理主键
     * @return 物料记录管理
     */
    @Override
    public MaterialReceiptRecord selectMaterialReceiptRecordById(String id)
    {
        return materialReceiptRecordMapper.selectMaterialReceiptRecordById(id);
    }

    /**
     * 查询物料记录管理列表
     * 
     * @param materialReceiptRecord 物料记录管理
     * @return 物料记录管理
     */
    @Override
    public List<MaterialReceiptRecord> selectMaterialReceiptRecordList(MaterialReceiptRecord materialReceiptRecord)
    {
        return materialReceiptRecordMapper.selectMaterialReceiptRecordList(materialReceiptRecord);
    }

    /**
     * 新增物料记录管理
     * 
     * @param materialReceiptRecord 物料记录管理
     * @return 结果
     */
    @Override
    public int insertMaterialReceiptRecord(MaterialReceiptRecord materialReceiptRecord)
    {
        return materialReceiptRecordMapper.insertMaterialReceiptRecord(materialReceiptRecord);
    }

    /**
     * 修改物料记录管理
     * 
     * @param materialReceiptRecord 物料记录管理
     * @return 结果
     */
    @Override
    public int updateMaterialReceiptRecord(MaterialReceiptRecord materialReceiptRecord)
    {
        return materialReceiptRecordMapper.updateMaterialReceiptRecord(materialReceiptRecord);
    }

    /**
     * 批量删除物料记录管理
     * 
     * @param ids 需要删除的物料记录管理主键
     * @return 结果
     */
    @Override
    public int deleteMaterialReceiptRecordByIds(String[] ids)
    {
        return materialReceiptRecordMapper.deleteMaterialReceiptRecordByIds(ids);
    }

    /**
     * 删除物料记录管理信息
     * 
     * @param id 物料记录管理主键
     * @return 结果
     */
    @Override
    public int deleteMaterialReceiptRecordById(String id)
    {
        return materialReceiptRecordMapper.deleteMaterialReceiptRecordById(id);
    }
}
